﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace FlowerPower
{
    public partial class frmTEST : Form
    {
        public frmTEST()
        {
            InitializeComponent();
        }

        private void frmTEST_Load(object sender, EventArgs e)
        {
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DBcontroller minDB = new DBcontroller();
            Kunde[] alal = new Kunde[100];

            //alal = minDB.IndlaesAlleKunder();
            List<Varegruppe> varegrupper = minDB.IndlaesVaregrupper();
            MessageBox.Show(Environment.UserName.ToString());
            foreach (Varegruppe item in varegrupper)
            {
                if (item != null)
                {
                    comboBox1.Items.Add(item);
                }
                
            }
        }
    }
}
